﻿using Demo.Net.EFCore.Entity;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo.Net.EFCore
{
    public partial class EFCoreDBContext: DbContext
    {

        public EFCoreDBContext(DbContextOptions<EFCoreDBContext> options) : base(options)
        {
        }


        public virtual DbSet<tusr_user> tusr_user { get; set; }


        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<tusr_user>(entity =>
            {
                entity.HasKey(e => e.user_id);
        
            });
        }
    }
}
